package com.joysuch.wwyt.dynamicdata.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jwk
 * @since 2021-11-26
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_base_dynamic_data")
@ApiModel(value="BaseDynamicData对象", description="")
public class BaseDynamicData extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "业务id")
    private Long bizId;

    @ApiModelProperty(value = "业务数据绑定编码")
    private String bizCode;

    @ApiModelProperty(value = "动态数据配置主键")
    private Long fieldConfigId;

    @ApiModelProperty(value = "字段名")
    private String fieldName;

    @ApiModelProperty(value = "值")
    private String fieldValue;

    @ApiModelProperty(value = "数据类型")
    private String dataType;

}
